package com.tsing.cloud;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.netflix.eureka.EnableEurekaClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author TheTsing
 * @version 1.0
 * @date 2021/11/10 14:11
 */
@RestController
@EnableEurekaClient
@SpringBootApplication
public class ConfigCenterMain3355 {

    public static void main(String[] args) {
        SpringApplication.run(ConfigCenterMain3355.class, args);
    }

    @Value("${test.say}")
    private String value;

    @RequestMapping("/say")
    public String say() {
        return value;
    }

}
